<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Fly Prod</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link rel="stylesheet" type="text/css" href="default.css" />
        <script type="text/javascript" src="scripts.js"></script>
        <script type="text/javascript">document.onmousemove=move; // dès que la souris bouge, on appelle la fonction move pour mettre à jour la position de la bulle.
        </script>

    </head>
    <body>
        <div id="upbg"></div>
        <div id="outer">

            <?php
            include 'header.php';
            ?>
            <?php
            include 'login.php';
            include 'menu.php';
            ?>
            <div id="content">
                <h1>Soirées à venir</h1>
                <?php
                include_once 'connectBDD.php';
                $result = mysql_query("SELECT * FROM event order by date_event");
                $nb = 1;
                $i = 0;
                while ($rows = mysql_fetch_assoc($result)) {
                    if ($i % 5 == 0) {
                        echo "<div class='ligneEvenements'>";
                    }
                    $i++;

                    echo "<a class='noDeco' href='detailEvenement.php?idEvent=" . $rows['id_event'] . "' onmouseover=\"javascript:montre('" . $rows['name_event'] . "')\" onmouseout=cache()>
                            <div class='event' id='" . $rows['id_event'] . "' onmouseover='entourerEvent(" . $rows['id_event'] . ")' onmouseout='detourerEvent(" . $rows['id_event'] . ")'>
                                <div>
                                    <img src='" . $rows['flyer_path'] . "'/>
                                </div>
                            </div>
                          </a>
                          ";
                    if ($i == 5 || $nb == mysql_num_rows($result)) {
                        echo '</div>';
                        $i = 0;
                    }
                    $nb++;
                }
                mysql_free_result($result);
                ?>
                <div id="curseur" class="infobulle">

                </div>
                <?php
                include 'footer.php';
                ?>

            </div>

    </body>
</html>
